/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo07_字符串的拼接 {

    public static void main(String[] args) {

        /*String str = "你好啊~";

        String newStr = str + "我好啊";

        System.out.println(str);
        System.out.println(newStr);*/


        // +遇到字符串表示连接
        System.out.println("df" + "bz");            // dfbz
        System.out.println("dfbz" + 10);                // dfbz10

        System.out.println("dfbz" + 5 + 5);         // dfbz55

        System.out.println("dfbz" + (5 + 5));       // dfbz10
        System.out.println(5 + 5 + "dfbz");         // 10dfbz

        System.out.println("1+1="+1+1);             // 1+1=11


    }
}
